<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>E-Drift: E-Drift console commands</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doc/style.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">E-Drift
   &#160;<span id="projectnumber">0.0</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">E-Drift console commands </div>  </div>
</div>
<div class="contents">
<div class="textblock"><h2><a class="anchor" id="buffer"></a>
Buffer management</h2>
<div class="fragment"><pre class="fragment">
create name nx ny
create name classname.dim
create name buffername.dim
delete name
copy from to
add|sub|mul|div name number
add|sub|mul|div buffer1 buffer2
assign name[range] number
  range [x,y] or [x0,y0,x1,y1]

fill name table
fill name x|y
fill name x|y delta
</pre></div><h2><a class="anchor" id="table"></a>
Reading table</h2>
<div class="fragment"><pre class="fragment">
table read table_name@file scale constant

on read:
    x value is multiplied by scale
    return value by constant
    default 1.0 and 1.0

</pre></div><h2><a class="anchor" id="dump"></a>
Dump commands</h2>
<div class="fragment"><pre class="fragment">
# to dump buffer
# b is exemplary buffer name. can be dom.buff
dump b &gt;&gt; filename
dump every(200) b &gt; filename

# dump a domain
dump 
dump &gt; dump.file
</pre></div><p>Dot is used as class-member separator</p>
<h2><a class="anchor" id="variable"></a>
System variables</h2>
<div class="fragment"><pre class="fragment">
buf.nx
buf.ny
buf.dim -&gt; tupple of nx ny
buf.size

#for fd-class plus this:
class.timestep
class.spacestep
class.step
class.time -&gt; step*timestep
</pre></div><h2><a class="anchor" id="print"></a>
Printing data to screen or file</h2>
<div class="fragment"><pre class="fragment">
# cu is exemplary name of a domain
echo text every(100) step(cu) time(cu) avg(cu.cell)

# print out text and values indicated by mnemonic.
# mnemonics:
#  step(dom) -&gt; step of domain dom
#  time(dom) or elepsed(dom) -&gt; elapsed time at dom
#  avg(dom.buff) of avg(buff) -&gt; average value
@verbatim

@section loop Commands loop

In a loop block, every command may use interval descriptor. To define an interval
use at '@' symbol after any command. The command will be executed at a defined interval,
regarding the loop-counter.
to stop command at any time use ':'.

@verbatim
example:
plot@100:500 a

plots plotter a every 100 interval, and stop at the 500th loop

</pre></div> </div></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Jul 19 2012 12:00:34 for E-Drift by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
